﻿using System;
using UILib;
using UnityEngine;

namespace XMainClient.UI.UICommon
{
	// Token: 0x0200192B RID: 6443
	public class DlgBehaviourBase : MonoBehaviour, IXUIBehaviour, IXUIObject
	{
		// Token: 0x17003B1A RID: 15130
		// (get) Token: 0x06010EC9 RID: 69321 RVA: 0x0044AABC File Offset: 0x00448CBC
		// (set) Token: 0x06010ECA RID: 69322 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public IXUIObject parent
		{
			get
			{
				return null;
			}
			set
			{
			}
		}

		// Token: 0x17003B1B RID: 15131
		// (get) Token: 0x06010ECB RID: 69323 RVA: 0x0044AAD0 File Offset: 0x00448CD0
		// (set) Token: 0x06010ECC RID: 69324 RVA: 0x0044AAE8 File Offset: 0x00448CE8
		public ulong ID
		{
			get
			{
				return this.m_id;
			}
			set
			{
				this.m_id = value;
			}
		}

		// Token: 0x17003B1C RID: 15132
		// (get) Token: 0x06010ECD RID: 69325 RVA: 0x0044AAF4 File Offset: 0x00448CF4
		// (set) Token: 0x06010ECE RID: 69326 RVA: 0x0044AB0C File Offset: 0x00448D0C
		public bool Exculsive
		{
			get
			{
				return this.m_bExculsive;
			}
			set
			{
				this.m_bExculsive = value;
			}
		}

		// Token: 0x06010ECF RID: 69327 RVA: 0x0044AB18 File Offset: 0x00448D18
		public bool IsVisible()
		{
			return base.gameObject.activeInHierarchy;
		}

		// Token: 0x06010ED0 RID: 69328 RVA: 0x0044AB35 File Offset: 0x00448D35
		public void SetVisible(bool bVisible)
		{
			base.gameObject.SetActive(bVisible);
		}

		// Token: 0x17003B1D RID: 15133
		// (get) Token: 0x06010ED1 RID: 69329 RVA: 0x0044AB48 File Offset: 0x00448D48
		// (set) Token: 0x06010ED2 RID: 69330 RVA: 0x0044AB60 File Offset: 0x00448D60
		public IXUIDlg uiDlgInterface
		{
			get
			{
				return this.m_uiDlgInterface;
			}
			set
			{
				this.m_uiDlgInterface = value;
			}
		}

		// Token: 0x17003B1E RID: 15134
		// (get) Token: 0x06010ED3 RID: 69331 RVA: 0x0044AB6C File Offset: 0x00448D6C
		public IXUIObject[] uiChilds
		{
			get
			{
				return this.m_uiChilds;
			}
		}

		// Token: 0x06010ED4 RID: 69332 RVA: 0x0044AB84 File Offset: 0x00448D84
		public IXUIObject GetUIObject(string strName)
		{
			Transform transform = base.transform.Find(strName);
			IXUIObject result;
			if (null != transform)
			{
				result = transform.GetComponent<XUIObjectBase>();
			}
			else
			{
				result = null;
			}
			return result;
		}

		// Token: 0x06010ED5 RID: 69333 RVA: 0x0044ABB9 File Offset: 0x00448DB9
		public void OnPress()
		{
			this.OnFocus();
		}

		// Token: 0x06010ED6 RID: 69334 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public void OnFocus()
		{
		}

		// Token: 0x06010ED7 RID: 69335 RVA: 0x0044ABC4 File Offset: 0x00448DC4
		public virtual void Init()
		{
			IXUIObject[] componentsInChildren = base.GetComponentsInChildren<XUIObjectBase>();
			this.m_uiChilds = componentsInChildren;
			for (int i = 0; i < this.m_uiChilds.Length; i++)
			{
				XUIObjectBase xuiobjectBase = this.m_uiChilds[i] as XUIObjectBase;
				xuiobjectBase.Init();
			}
		}

		// Token: 0x06010ED8 RID: 69336 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public virtual void Highlight(bool bTrue)
		{
		}

		// Token: 0x06010EDA RID: 69338 RVA: 0x0044AC2C File Offset: 0x00448E2C
// 		GameObject IXUIObject.get_gameObject()
// 		{
// 			return base.gameObject;
// 		}

		// Token: 0x04007C71 RID: 31857
		private IXUIDlg m_uiDlgInterface = null;

		// Token: 0x04007C72 RID: 31858
		private IXUIObject[] m_uiChilds = null;

		// Token: 0x04007C73 RID: 31859
		private ulong m_id;

		// Token: 0x04007C74 RID: 31860
		private bool m_bExculsive = false;
	}
}
